package cn.tradewin.pmp.test.model;

import java.util.ArrayList;
import java.util.List;


public class Person implements java.io.Serializable {
	
	private static final long serialVersionUID = 1L;
	private String name;
	private int age;
	private Contact contact;
	private List<Contact> contacts;

	public Person() {
		
	}
	
	public Contact getContact() {
		if (contact == null) {
			contact = new Contact();
		}
		return contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public List<Contact> getContacts() {
		if (contacts == null) {
			contacts = new ArrayList<Contact>();
		}
		return contacts;
	}

	public void setContacts(List<Contact> contacts) {
		this.contacts = contacts;
	}
}
